package com.baizhi.mapper;

import com.baizhi.entity.Book;
import com.baizhi.entity.Category;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BooksMapper {
    //添加
    public int insertbook(@Param("b") Book book);
    //删除
    public int deletebook(int id);
    //修改
    public int updatebook(@Param("b") Book book);
    //查所有
    public List<Category> selectAllbook();
    //部分删除
    public int deletesbook(List<Integer> ids);
   //分页
    public List<Category> selectCategorysByPage(@Param("offset")int offset,@Param("rows")int rows);
    //总数
    public int selectToalCount();
    //删除当下的categoryid
    public  int deletecategory(Integer id);
}
